import { UPDATEPAGEONEKEYLOGIN } from '../types/pageonekeylogin'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  breaklocation: false,
  havenoshopbyshare: false
}

export default handleActions(
  {
    [UPDATEPAGEONEKEYLOGIN] (state, action) {
      return {
        ...state,
        ...action.payload
      }
    }
  },
  Schema
)
